<div class="container login-container">
  <div class="row">
    <div class="col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3">
      <div class="panel panel-default">
        <div class="panel-heading">
          <h3 class="panel-title">金管家-重置密码</h3>
        </div>
        <div class="panel-body">
          <form name="resetForm" class="form-check" ng-submit="vm.reset(resetForm.$valid)" novalidate>
            <div class="form-group">
              <input type="email" name="email" class="form-control" ng-model="vm.user.email" placeholder="邮箱" autofocus required>
              <p class="alert alert-danger" ng-show="resetForm.$submitted && resetForm.email.$error.required">
                <i class="glyphicon glyphicon-info-sign"></i> 邮箱不能为空</p>
              <p class="alert alert-danger" ng-show="resetForm.$submitted && resetForm.email.$error.email">
                <i class="glyphicon glyphicon-info-sign"></i> 邮箱格式不正确</p>
            </div>
            <div class="form-group">
              <input type="text" name="kaptcha" class="form-control" ng-model="vm.user.kaptcha" placeholder="验证码" required>
              <p class="alert alert-danger" ng-show="resetForm.$submitted && resetForm.kaptcha.$error.required">
                <i class="glyphicon glyphicon-info-sign"></i> 验证码不能为空</p>
            </div>
            <div class="form-group">
              <img alt="Loading..." ng-src="{{vm.kaptcha}}">
              <a href="javascript:void(0)" ng-click="vm.changeKaptcha()">看不清，换一张</a>
            </div>
            <button type="submit" class="btn btn-lg btn-primary btn-block">
                <i class="glyphicon glyphicon-send"></i> 重置密码</button>
          </form>
          <br>
          <div class="login-help">
            <a href="#/login">登录</a> - <a href="#/regist">注册账号</a>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>